import request from '@/utils/request'

export default{

    //生成订单
    saveOrder(courseId){
        return request({
            url: '/orderservice/order/saveOrder/'+courseId,
            method: 'post'
        })
    },
    //根据订单id获取订单信息
    getOrderInfo(id){
        return request({
            url: '/orderservice/order/getOrderInfo/'+id,
            method: 'get'
        })
    },
  //生成二维码的方法
  createNatvie(orderNo) {
    return request({
      url: '/orderservice/paylog/createNative/'+orderNo,
      method: 'get'
    })
  },

  //查询订单状态的方法
  //生成二维码的方法
  queryPayStatus(orderNo) {
    return request({
      url: '/orderservice/paylog/queryPayStatus/'+orderNo,
      method: 'get'
    })
  }
}